package com.yiren.manager.form.messhall;

import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.yiren.core.form.GenericForm;
import com.yiren.entity.YrElderBeHospital;
import com.yiren.entity.YrUserRfidCard;
import com.yiren.manager.form.cost.YrMealsCostRecordForm;
import com.yiren.manager.form.department.YrStaffInfoForm;
import com.yiren.manager.form.elder.YrElderBeHospitalForm;
import com.yiren.manager.utils.CustomJsonDateDeserializer;

public class YrMealCardForm extends GenericForm{
	
	private static final long serialVersionUID = -7252417216462191871L;

	private String mealCardId;

	private String cardCardId;

	private String cardPersonId;

	private String cardPersonName;

	private Integer cardType;

	private String createId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date createTime;

	private String updateId;

 	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	private Date updateTime;

	private Float balance;
	
	private String userRfidCardId;
	
	private Integer personType;
	
	private String handler;
	
	private List<YrMealsCostRecordForm> mealsCostRecordForms;
	
	private Float preBalance;
	
	private Date prePreTime;
	
	private Integer preDisDays;
	
	private YrElderBeHospitalForm elderBeHospitalForm;
	
	private YrStaffInfoForm staffInfoForm;
	
	public Integer getPreDisDays() {
		return preDisDays;
	}

	public void setPreDisDays(Integer preDisDays) {
		this.preDisDays = preDisDays;
	}

	public YrStaffInfoForm getStaffInfoForm() {
		return staffInfoForm;
	}

	public void setStaffInfoForm(YrStaffInfoForm staffInfoForm) {
		this.staffInfoForm = staffInfoForm;
	}

	public YrElderBeHospitalForm getElderBeHospitalForm() {
		return elderBeHospitalForm;
	}

	public void setElderBeHospitalForm(YrElderBeHospitalForm elderBeHospitalForm) {
		this.elderBeHospitalForm = elderBeHospitalForm;
	}

	public Date getPrePreTime() {
		return prePreTime;
	}

	public void setPrePreTime(Date prePreTime) {
		this.prePreTime = prePreTime;
	}

	public Float getPreBalance() {
		return preBalance;
	}

	public void setPreBalance(Float preBalance) {
		this.preBalance = preBalance;
	}

	public List<YrMealsCostRecordForm> getMealsCostRecordForms() {
		return mealsCostRecordForms;
	}

	public void setMealsCostRecordForms(List<YrMealsCostRecordForm> mealsCostRecordForms) {
		this.mealsCostRecordForms = mealsCostRecordForms;
	}

	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	private List<YrUserRfidCard> userRfidCardForms;
	
	public List<YrUserRfidCard> getUserRfidCardForms() {
		return userRfidCardForms;
	}

	public void setUserRfidCardForms(List<YrUserRfidCard> userRfidCardForms) {
		this.userRfidCardForms = userRfidCardForms;
	}

	public Integer getPersonType() {
		return personType;
	}

	public void setPersonType(Integer personType) {
		this.personType = personType;
	}

	public String getUserRfidCardId() {
		return userRfidCardId;
	}

	public void setUserRfidCardId(String userRfidCardId) {
		this.userRfidCardId = userRfidCardId;
	}

	public String getMealCardId() {
		return mealCardId;
	}

	public void setMealCardId(String mealCardId) {
		this.mealCardId = mealCardId;
	}

	public String getCardCardId() {
		return cardCardId;
	}

	public void setCardCardId(String cardCardId) {
		this.cardCardId = cardCardId;
	}

	public String getCardPersonId() {
		return cardPersonId;
	}

	public void setCardPersonId(String cardPersonId) {
		this.cardPersonId = cardPersonId;
	}

	public String getCardPersonName() {
		return cardPersonName;
	}

	public void setCardPersonName(String cardPersonName) {
		this.cardPersonName = cardPersonName;
	}

	public Integer getCardType() {
		return cardType;
	}

	public void setCardType(Integer cardType) {
		this.cardType = cardType;
	}

	public String getCreateId() {
		return createId;
	}

	public void setCreateId(String createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateId() {
		return updateId;
	}

	public void setUpdateId(String updateId) {
		this.updateId = updateId;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	@JsonDeserialize(using=CustomJsonDateDeserializer.class)
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Float getBalance() {
		return balance;
	}

	public void setBalance(Float balance) {
		this.balance = balance;
	}
	
}
